LassoScript Utility
Basics Browse Detail

[Email_SMTP->Send]

Tag Link [Email_SMTP->Send] Category Email
Type Member Source Available Yes
Support Preferred Version 8.0
Change Unchanged Data Source Any
Output Type Boolean Security Tag
Implementation LDML Sets Lasso 8.5, Lasso 8.0

Description

[Email_SMTP->Send] sends a single email message through an open SMTP connection. Data for the parameters of the tag is usually returned from an [Email_Compose] object.

The tag requires three parameters: -From is the email address of the person sending the message, -Recipients is an array of email addresses including every -To, -CC, and -BCC recipient of the message, and -Message is the MIME encoded body of the email message.

The tag returns True if the message sent successfully or False otherwise.

Syntax

[Var: 'Email' = (Email_Compose: ...)]

[Var: 'SMTP' = (Email_SMTP)]
[$SMTP->(Open: -Host='smtp.example.com', -Username='JohnDoe', -Password='Example')]
[$SMTP->(Send: -From=$Email->From, -Recipients=$Email->Recipients, -Message=$Email->Data)]
[$SMTP->Close]

Parameters

Required Parameters
-From The email address of the person sending the message.
-Recipients An array of all -To, -Cc, and -Bcc recipients of the message.
-Message The raw MIME data of the message.

Examples

See the Lasso 8 Language Guide for examples of how to use this tag.